import Home from '../views/Home.vue'

export default [{
	path:'/',
	name : 'Home',
	component : Home,
	meta:{
		title: '集团管理',
		auth: true,
		level: 1
	}
},{
	path: '/factory/:factoryId?',
	name: 'Factory',
	component: ()=>import('@/views/Factory'),
	meta: {
		title: '集团下的工厂管理',
		auth: true,
		level: 2
	}
},{
	path: '/workshop/:workshopId?',
	name: 'Workshop',
	component: ()=>import('@/views/Workshop'),
	meta: {
		title: '工厂下的车间管理',
		auth: true,
		level: 3
	}
},{
	path: '/product/:productId?',
	name: 'Product',
	component: ()=>import('@/views/Product'),
	meta: {
		title: '车间下的产线管理',
		auth: true,
		level: 4
	}
},{
	path: '/unit/:unitId?',
	name: 'Unit',
	component: ()=>import('@/views/Unit'),
	meta: {
		title: '产线下的机组管理',
		auth: true,
		level: 5
	}
},{
	path: '/login',
	name: 'Login',
	component: ()=>import('@/views/Login'),
	meta: {
		title: '登录管理'
	}
},{
	path:'*',
	name : 'NotFound',
	component : ()=>import('@/views/NotFound'),
	meta:{
		title: '404'
	}
}]